package cn.edu.ujn.food.service;

import cn.edu.ujn.food.entity.Restaurant;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface RestaurantService {

    cn.edu.ujn.util.Page<Restaurant> selectAll(Restaurant restaurant);

    Restaurant queryById(Integer restId);

    Page<Restaurant> queryByPage(Restaurant restaurant, PageRequest pageRequest);

    Restaurant insert(Restaurant restaurant);

    Restaurant update(Restaurant restaurant);

    boolean deleteById(Integer restId);

    List<Restaurant> findAll();
}
